package io.renren.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 购物车+订单详情表
 */
@ApiModel(value = "io-renren-modules-shop-entity-GoodsAndOrder")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods_and_order")
public class GoodsAndOrder {
    /**
     * 购物车表ID
     */
    @TableId(value = "goods_and_order_id", type = IdType.AUTO)
    @ApiModelProperty(value = "购物车表ID")
    private Integer goodsAndOrderId;

    /**
     * 订单表id
     */
    @TableField(value = "order_id")
    @ApiModelProperty(value = "订单表id")
    private Integer orderId;

    /**
     * 商品id
     */
    @TableField(value = "goods_id")
    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    /**
     * 未被购买（0） 购买（1）
     */
    @TableField(value = "goods_status")
    @ApiModelProperty(value = "未被购买（0） 购买（1）")
    private Integer goodsStatus;

    /**
     * 用户openid
     */
    @TableField(value = "openid")
    @ApiModelProperty(value = "用户openid")
    private String openid;

    /**
     * 商品单价
     */
    @TableField(value = "goods_price")
    @ApiModelProperty(value = "商品单价")
    private BigDecimal goodsPrice;

    /**
     * 商品数量
     */
    @TableField(value = "goods_num")
    @ApiModelProperty(value = "商品数量")
    private Integer goodsNum;

    /**
     * 商品总价
     */
    @TableField(value = "goods_all_price")
    @ApiModelProperty(value = "商品总价")
    private BigDecimal goodsAllPrice;

}
